package com.example.demo.ReentrantLock锁;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @description:
 * @projectName:demo
 * @see:ReentrantLock锁
 * @author:袁成龙
 * @createTime:2020/10/7 13:14
 * @version:1.0
 */
public class TestRunnable2 extends Thread{

    private ReentrantLock reentrantLock;

    public TestRunnable2(ReentrantLock reentrantLock) {
        this.reentrantLock = reentrantLock;
    }

    @Override
    public void run() {
        for (int i = 0; i <100 ; i++) {
            System.out.println("++++++"+Thread.currentThread().getName());
        }
    }

}